<template>
  <div class="shop">
    <img :src="item.imgUrl" alt="" class="shop__img" />
    <div
      :class="{
        shop__content: true,
        shop__contentBorder: hideBorder ? false : true
      }"
    >
      <div class="shop__content__title">{{ item.name }}</div>
      <div class="shop__content__tags">
        <span class="shop__content__tag">月售：{{ item.sales }}</span>
        <span class="shop__content__tag">起送：{{ item.expressLimit }}</span>
        <span class="shop__content__tag"
          >基础运费：{{ item.expressPrice }}</span
        >
      </div>
      <p class="shop__content__hignlight">
        {{ item.slogan }}
      </p>
    </div>
  </div>
</template>
<script>
export default {
  name: 'ShopInfo',
  props: ['item', 'hideBorder']
}
</script>
<style lang="scss" scoped>
@import '../style/common.scss';
.shop {
  box-sizing: border-box;
  padding-top: 0.12rem;
  display: flex;
  .shop__img {
    width: 0.56rem;
    height: 0.56rem;
    margin-right: 0.16rem;
  }
  .shop__contentBorder {
    border-bottom: 0.03rem solid #f1f1f1;
  }
  .shop__content {
    flex: 1;
    .shop__content__title {
      font-size: 0.16rem;
      line-height: 0.22rem;
      color: $content-fontColor;
    }
    .shop__content__tags {
      margin-top: 0.08rem;
      .shop__content__tag {
        line-height: 0.18rem;
        font-size: 0.13rem;
        color: $content-fontColor;
        margin-right: 0.16rem;
      }
    }
    .shop__content__hignlight {
      color: #e93b3b;
      margin: 0.08rem 0 0.12rem 0;
    }
  }
}
</style>
